<html>
<head>
<title>

</title>
</head>
<body>


<%
  Cookie [] cookies = request.getCookies();
 if(null==cookies){
	 out.println(" no cookie");
	 return;
 }
 for(Cookie cookie : cookies){
%>
<b> cookie name :</b>
<%=cookie.getName() %>
<b> cookie value</b>
<%=cookie.getValue() %>
<b>max age</b>
<%=cookie.getMaxAge() %>
<%	 
 }
%>
<%=response.encodeURL("mail.jsp") %>

<b> hello <%=request.getParameter("username")%>  </b>
</body>
</html>
